<?php
date_default_timezone_set( "Asia/Shanghai" );
$arr1 = getdate( time() );
$arr2 = getdate( time() + 24 * 60 * 60 );
$arr3 = getdate( strtotime( 'yesterday' ) );
print_r( $arr1 );
print_r( $arr2 );
print_r( $arr3 );